package cn.tedu.uep.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum StatusCode {
    SUCCESS(200, "OK"),
    LOGIN_SUCCESS(201, "登录成功"),
    OPERATION_SUCCESS(202, "操作成功"),


    NOT_LOGIN(400, "未登录"),
    PASSWORD_ERROR(402, "密码错误"),
    USERNAME_ERROR(403, "用户名错误"),

    OPERATION_FAILED(501, "操作失败"),
    VALIDATE_ERROR(502, "请求参数错误"),
    USERNAME_ALREADY_EXISTS(503, "用户名被占用"),
    DATA_UNEXISTS(504, "请求数据不存在");

    //状态码、状态码描述
    private Integer code;
    private String msg;
}